package com.masterclient.app.businessmodule.settingmodule.auth;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.eoner.baselib.widget.navgation.FCNavigationBar;
import com.masterclient.app.R;
import com.masterclient.app.base.FCBusinessActivity;
import com.masterclient.app.modules.income.dealer.DealerBankCardManageActivity;
import com.masterclient.app.businessmodule.settingmodule.bankcard.BankCardManageActivity;
import com.masterclient.app.businessmodule.settingmodule.auth.contract.PointDrawContract;
import com.masterclient.app.businessmodule.settingmodule.auth.contract.PointDrawContractPresenter;
import com.masterclient.app.businessmodule.minemodule.point.model.PointDrawData;
import com.eoner.baselib.utils.status.StatusBarUtil;
import butterknife.BindView;
import butterknife.OnClick;

public class SubmitIDsResultActivity extends FCBusinessActivity<PointDrawContractPresenter> implements PointDrawContract.View {


    @BindView(R.id.next)
    TextView next;

    private int pageType = 0;

    @Override
    protected int requireGetLayoutId() {
        return R.layout.submit_ids_result;
    }

    @Override
    protected void requireSetCustomNavigationBar(FCNavigationBar navigationBar) {
            navigationBar.setTitle("提交成功");
    }

    @Override
    protected void requireInitUIAndData(Bundle savedInstanceState) {

        StatusBarUtil.setStatusBarColor(getActivity(), Color.parseColor("#FFFFFF"));
        init();
    }


    private void init() {
        pageType = getIntent().getIntExtra("pageType",0);
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);

    }

    @OnClick({R.id.next})
    void onClick(View v) {
        switch (v.getId()) {
            case R.id.next:
                if (pageType == 1){
                    //经销商实名
                    startActivitry(DealerBankCardManageActivity.class, new String[][]{{"url", ""}});
                }else {
                    startActivitry(BankCardManageActivity.class, new String[][]{{"url", ""}});
                }
                finish();
                break;
        }
    }




    @Override
    public void showData(PointDrawData data) {



    }

    @Override
    public void loadFail(String s) {

    }

    @Override
    public void loadError(String s) {

    }
}
